<?php

ini_set('display_errors',true);
session_start();

// is user logged on ? --------------------------------------------
if (!isset($_SESSION['user'])) { header("location: ./logon.php"); }
// ----------------------------------------------------------------

$left="../templates/misc/menu.php";
$data="../templates/project.php";
$userInfo = "../templates/misc/userInfo.php";


$u = new SimpleXMLElement($_SESSION['user']);

$alert = "";
	
require_once("../classes/Factory.php");

$project = Factory::buildFromFile("Project", $_SESSION['project']);

$tasks = $project->getTasks();
$resources = $project->getResources();
$assignments = $project->getAssignments();
$timeSheet = Factory::buildFromFile("TimeSheet", $_SESSION['timesheet']);


include("../templates/main.php");

?>
